package com.jyw.system.domain.vo;

import com.jyw.system.domain.SysTeam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 沈峻
 * @ClassName TeamCacheVo
 * @Description TODO
 * @Date 2023/8/25 17:58
 **/
@Data
@ApiModel("小组缓存对象")
@NoArgsConstructor
public class TeamCacheVo {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("名称")
    private String teamName;

    public TeamCacheVo(SysTeam team) {
        setId(team.getId());
        setTeamName(team.getTeamName());
    }
}
